package com.scut.online_black_market.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("product_order")
public class ProductOrder {

    @TableId("product_id")
    private long productId;


    private String sellmanId;


    private String buyerId;


    private LocalDateTime buyTime;

    private float orderPrice;

    @JsonIgnore
    private int state;

    //表示订单类型
    private int type;

}
